package DataDefinition;

import java.util.Date;

import interfaceces.Iuser;

public class Users implements Iuser {
	private String name;
	private String surName;
	private Date lastLogin;
	
	public Users(String name, String surName, Date lastLogin) {
		super();
		this.name = name;
		this.surName = surName;
		this.lastLogin = lastLogin;
	}
	public Date getLastLogin() {
		return lastLogin;
	}
	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	@Override
	public String getName() {
		
		return name;
	}

	@Override
	public String getSurName() {
		
		return surName;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void setSurnName(String surname) {
		this.surName = surname;

	}

	@Override
	public boolean equals(Object obj) {
		Boolean statement = false;
		if(obj instanceof Users)
			statement = (this.getSurName().equals(((Users)obj).getSurName()) && this.getName().equals(((Users)obj).getName())); 
		return statement;
	}
	
	
	
}
